package com.demo.resourcecode.c9mybatis;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MainTest2 {

	public static void main(String[] args) {
		ApplicationContext act = new ClassPathXmlApplicationContext("mybatisspring2.xml");
		TestMapper userService = (TestMapper)act.getBean("testMapper");
		Test t = new Test();
		t.setId(4);
		t.setName("zsl4");
		//userService.save(t);
		System.out.println(userService.get(4));
	}

}
